package com.sise.dbservice8001.controller;

import com.sise.dbservice8001.service.FindService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author:ljf
 * @date: 2020/6/8
 * @description:
 **/
@RestController
public class sendController {

    @Resource
    private FindService findService;


    @RequestMapping(value = "/getPersonById/{id}")
    public String findPerson(@PathVariable("id") Integer id) {
        return findService.findPersonById(id).toString();
    }
}
